package cn.doit.scala.day03

import scala.io.Source

/**
 * @DATE 2021/12/27/16:34
 * @Author MDK
 * @Version 2021.2.2
 * */
object C11_Contains {
  def main(args: Array[String]): Unit = {
    val lines: Iterator[String] = Source.fromFile("d://aaa//1.txt").getLines()
    val words: List[String] = lines.map(line => line.split("\\s+")).toList.flatten
    val bool: Boolean = words.contains("bbb")
    println(bool)
  }
}
